﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000B6 RID: 182
	public class TOpenStmt : TCustomSqlStatement
	{
		// Token: 0x0600062E RID: 1582 RVA: 0x002FE55F File Offset: 0x002FC75F
		public TOpenStmt() : this(EDbVendor.dbvoracle)
		{
		}

		// Token: 0x0600062F RID: 1583 RVA: 0x002FE569 File Offset: 0x002FC769
		public TOpenStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sst_openstmt;
		}

		// Token: 0x06000630 RID: 1584 RVA: 0x002FE57A File Offset: 0x002FC77A
		internal override void buildsql()
		{
		}

		// Token: 0x06000631 RID: 1585 RVA: 0x002FE57C File Offset: 0x002FC77C
		internal override void clear()
		{
		}

		// Token: 0x06000632 RID: 1586 RVA: 0x002FE57E File Offset: 0x002FC77E
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000633 RID: 1587 RVA: 0x002FE585 File Offset: 0x002FC785
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x17000111 RID: 273
		// (get) Token: 0x06000634 RID: 1588 RVA: 0x002FE587 File Offset: 0x002FC787
		// (set) Token: 0x06000635 RID: 1589 RVA: 0x002FE58F File Offset: 0x002FC78F
		public virtual TExpressionList CursorParameterNames
		{
			get
			{
				return this.cursorParameterNames;
			}
			set
			{
				this.cursorParameterNames = value;
			}
		}

		// Token: 0x17000112 RID: 274
		// (get) Token: 0x06000636 RID: 1590 RVA: 0x002FE598 File Offset: 0x002FC798
		// (set) Token: 0x06000637 RID: 1591 RVA: 0x002FE5A0 File Offset: 0x002FC7A0
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x06000638 RID: 1592 RVA: 0x002FE5A9 File Offset: 0x002FC7A9
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			base.doParseStatement(psql);
			return 0;
		}

		// Token: 0x06000639 RID: 1593 RVA: 0x002FE5B4 File Offset: 0x002FC7B4
		public override void init(object arg1)
		{
			this.cursorName = (TObjectName)arg1;
			this.cursorName.ObjectType = 17;
		}

		// Token: 0x0600063A RID: 1594 RVA: 0x002FE5CF File Offset: 0x002FC7CF
		public override void init(object arg1, object arg2)
		{
			this.init(arg1);
			this.cursorParameterNames = (TExpressionList)arg2;
		}

		// Token: 0x0600063B RID: 1595 RVA: 0x002FE5E4 File Offset: 0x002FC7E4
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600063C RID: 1596 RVA: 0x002FE5F4 File Offset: 0x002FC7F4
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001185 RID: 4485
		private TExpressionList cursorParameterNames;

		// Token: 0x04001186 RID: 4486
		private TObjectName cursorName;
	}
}
